import {request} from './index'

export function getNewDrawing(user_id,name) {
    return request({
        url:'/whiteboard/add',
       
        params: {
            user_id,
            name              
          }

    })
}

export function getAllDrawing(user_id,pageNo,limit) {
    return request({
        url:'/whiteboard/info',
       
        params: {
            user_id,
            pageNo,
            limit
          }

    })
}

export function deleteDrawing(user_id,whiteboard_id) {
    return request({
        url:'/whiteboard/delete',
       
        params: {
            user_id,
            whiteboard_id

          }

    })
}

export function changeState(user_id,whiteboard_id,readOnly) {
    return request({
        url:'/whiteboard/update/readOnly',
       
        params: {
            user_id,
            whiteboard_id,
            readOnly
          }

    })
}